<% content_for :head do %>
  <%= javascript_include_tag "/assets/ckeditor/ckeditor.js" %>
<% end %>

<%= form_for([:admin, @shipping_method], :validate => true) do |f| %>

<%= render "shared/error_messages", :target => @shipping_method %>

<table>
  <tbody>
    <tr>
      <th><%= f.label :presentation %></th>
      <td><%= f.text_field :presentation, :maxlength => 30, :size => 40, :onkeyup => "getElementById('shipping_method_name').value = make_url(this.value);" %></td>
    </tr>
    <tr>
      <th><%= f.label :name %></th>
      <td><%= f.text_field :name, :maxlength => 30, :size => 40 %></td>
    </tr>
    <tr>
      <th><%= f.label :price %></th>
      <td><%= f.text_field :price, :maxlength => 7, :size => 20 %>&nbsp;Kč</td>
    </tr>
    <tr>
      <th><%= f.label :hidden %></th>
      <td>
        <label><%= f.radio_button :hidden, "0", :checked => !f.object.is_hidden? %> Ano</label>
        <label><%= f.radio_button :hidden, "1", :checked => f.object.is_hidden? %> Ne</label>
      </td>
    </tr>
    <tr>
      <th><%= f.label :description %></th>
      <td colspan="3"><%= f.cktext_area :description, :width => "550px", :height => "300px" %></td>
    </tr>
    <tr>
      <td colspan="3"><%= f.submit %></td>
    </tr>
  </tbody>
</table>
<% end %>